{extend name="public/base" /}

{block name="title"}<title>日常奖扣</title>{/block}

{block name="pjax_container"}
<style>
    .col-sm-2{
        width: 23.666667%;
        height: 33px;
        line-height: 40px;
        padding-top: 15px;
    }
    .col-sm-7{
        padding-top: 15px;
    }
    tr>th,
    td {
        text-align: center;
    }

    .btn-group-xs>.btn,
    .btn-xs {
        padding: 5px;
        margin: 0 5px;
    }

    .content-header>.breadcrumb>li{
        color: #999;
    }
    .content-header>.breadcrumb>.active{
        color: #666;
    }
    .content-header{
        height: 51px;

    }
    
    .delete-one{
        background-color: ff4141 !important;
        margin-left: 15px;
        border-radius: 6px;
    }
    .sreachs{
        margin-right: 10px;
    }

    .form-control{
        width: 90%;
        border-radius: 8px;
    }
  
    .timepicker{
        margin: 10px 5px !important;
    }
.box-header.with-border {
    border-bottom: 1px solid #f4f4f4;
}
.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 12px;
    height: 34px;
    width: 230px;
}

.advancedQuery{
    width: 100%;
    height: 252px;
    display: none;
}
   .advancedQuery  label{
       margin-top: 18px;
       height: 35px;
       display: flex;
       justify-content: flex-start;

   }
      .advancedQuery  label span{
            width: 80px;
            line-height: 35px;
            flex-shrink: 1;
      }
   .advancedQuery  label input{
       width: 230px;
          height: 100%;
          border-radius: 6px;
          border: none;
          border: 1px solid #eee;
          padding-left: 20px;
   }
   .table-responsive{
       background-color: #fff;
   }
   .tpl-list-table_header{
    display: flex;
    justify-content: space-between;
    padding: 7px 15px 7px 33px;
    border: 1px solid #91d5ff;
    background-color: #e6f7ff;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    height: 45px;
    line-height: 35px;
   
}
select{
    width: 230px;
          height: 100%;
          border-radius: 6px;
          border: none;
          border: 1px solid #eee;
          padding-left: 20px;
}
.modal-content{
    margin-top: 150px;
    width: 855px;
    height: 700px;

}
.modal-body{
    padding: 27px;
    width: 856px;
    height: 570px;
    display: flex;
}
.modal-right{
    flex: 1;
    height: 104%;
    border: 1px solid #eee;
    margin-left: 30px;
}
.modal-left{
    width: 66%;
    height: 100%;
   
}
.modal-right>h4{
    width: 100%;
    display: flex;
    justify-content: space-around;
}
.form-control{
    border-radius: 6px;
}
.table-body{
    width: 530px;
    height: 470px;
    border-radius: 6px;
    background-color: #eee;
}
.table-left{
    margin-right: 2%;
    width: 49%;
         height: 100%;
       float: left;
         border: 1px solid #eee;
    background-color: #fff;
}
.table-right{
       width: 49%;
         height: 100%;
           border: 1px solid #eee;
          float: left;
       background-color: #fff;
}

.layui-tree-entry{
    height: 100%;
    width: 100%;
    padding-right: 10px;
    line-height: 24px;
   
}
.table-right>p{
     text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
}
.table-right>h4{
      text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
   
}
.table-right>p>span{
      text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
    width: 80%;
    display: inline-block;
    letter-spacing: 1px;
   
}
input[type=checkbox], input[type=radio] {
    margin-top: 11px;
}

.modal-right h4{
    width: 100%;
    font-size: 14px;
    text-align: center;
}
.move{
    width: 524px;
    height: 283px;
}


.magic-radio,
.magic-checkbox {
	position: absolute;
	display: none;
    
}
 

 
.magic-radio + label,
.magic-checkbox + label {
	position: relative;
	display: block;
	padding-left: 30px;
	cursor: pointer;
 
}
 
.magic-radio + label:before,
.magic-checkbox + label:before {
	position: absolute;
	top: 0px;
	left: 0;
	display: inline-block;
	width: 20px;
	height: 20px;
        margin-top: 5px;
	content: '';
	border: 1px solid #c0c0c0;
}
.magic-checkbox + label:before{
    	top: -5px;
}
.magic-radio + label:after,
  .magic-checkbox + label:after {
	position: absolute;
	display: none;
	content: '';
        margin-top: 5px;
}


 
.magic-radio:checked + label:after,
.magic-checkbox:checked + label:after {
	display: block;
}
.magic-radio + label:before {
	border-radius: 50%;
}
.magic-radio + label:after {
	top: 6px;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3e97eb;
}
.magic-radio:checked + label:before {
	border: 1px solid #3e97eb;
}
.magic-radio:checked[disabled] + label:before {
	border: 1px solid #c9e2f9;
}

.magic-checkbox + label:before {
	border-radius: 3px;
}
.magic-checkbox + label:after {
	top: 2px;
	left: 7px;
	box-sizing: border-box;
	width: 6px;
	height: 12px;
	transform: rotate(45deg);
	border-width: 2px;
	border-style: solid;
	border-color: #fff;
	border-top: 0;
	border-left: 0;
}
.magic-checkbox + label:after {
    top: -2px;
}
.magic-checkbox:checked + label:before {
    border: #1890FF;
    background: #1890FF;
}
.magic-checkbox:checked[disabled] + label:before {
	border: #1890FF;
    background: #1890FF;
}
.btn-primary{
    background-color: #1890FF;
}
.box.box-primary{
    border-top-color: transparent;
    margin-top: 16px;
}
</style>

<section class="content-header">
    <ol class="breadcrumb">
        <li>积分管理</li>
        <li class="active">日常奖扣查询</li>
        <li class="active">条件排名</li>
    </ol>
</section>

<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <div class="pull-left">

                        <a href="javascript:;" class="btn btn-sm btn-primary" id="export" target="_blank">导出</a>
                    </div>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>排名</th>
                            <th>姓名</th>
                            <th>工号</th>
                            <th>所有奖分</th>
                            <th>所有扣分</th>
                            <th>所有得分</th>
                        </tr>
                        {volist name="list" id="v"}
                        <tr>
                            <td>{$key+1}</td>
                            <td>{$v.user_name}</td>
                            <td>{$v.job_number}</td>
                            <td>{$v.integral_positive}</td>
                            <td {if condition="$v.integral_negative < 0"} style='color: red' {/if}>{$v.integral_negative}</td>
                            <td>{$v.integral_total}</td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                </div>
            </div>
        </div>
    </div>
</section>
<script>
    $('#export').on('click',function () {
        console.log(window.location.search);
        window.location.href = "{:url('by_condition_export')}"+window.location.search;
    })
</script>
{/block}
